<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a4j="http://richfaces.org/a4j"
        >

<ui:component>

    <style type="text/css">
        .barsearch {
            height: 14px;
            width: 100px;
        }

        .barsearchbutton {
            border-width: 1px;

        }

        /*.logoHome {*/
        /*height: 34px;*/
        /*width: 200px;*/
        /*float: left;*/
        /*background-color: green;*/

        /*}*/

        .commandHome {
            height: 34px;
            width: 100%;
            float: right;

        }


    </style>


    <h:form>
        <h:panelGrid id="hederAdminCommand" style="width:100%">
            <h:panelGroup styleClass="commandHome" layout="block">
                <rich:toolBar height="34" itemSeparator="line">

                    <rich:toolBarGroup>
                        <h:outputLabel value="AdminConnected   "/>
                    </rich:toolBarGroup>

                    <!--<rich:toolBarGroup>-->
                    <!--<h:commandLink value="Queries"/>-->
                    <!--</rich:toolBarGroup>-->

                    <!--<rich:toolBarGroup>-->
                    <!--<a4j:commandLink value="Edit"-->
                    <!--action="#{admin.edit}"-->
                    <!--reRender="adminCenterPanel"-->
                    <!--limitToList="true"/>-->
                    <!--</rich:toolBarGroup>-->

                    <!--<rich:toolBarGroup>-->
                    <!--<a4j:commandLink value="Create"-->
                    <!--action="#{admin.create}"-->
                    <!--reRender="adminCenterPanel"-->
                    <!--limitToList="true"/>-->
                    <!--</rich:toolBarGroup>-->

                    <rich:toolBarGroup location="right">
                        <rich:dropDownMenu>

                            <f:facet name="label">
                                <h:panelGrid cellpadding="0" cellspacing="0" columns="2"
                                             style="vertical-align:middle">
                                    <h:outputText value="#{resources.settingsMeni}"/>
                                </h:panelGrid>
                            </f:facet>

                            <rich:menuItem value="Account">

                            </rich:menuItem>

                            <rich:menuGroup value="#{resources.themeMenuGroup}">
                                <rich:menuItem value="BlueSky">
                                    <a4j:actionparam name="skin" value="blueSky" assignTo="#{skinBean.skin}"/>
                                </rich:menuItem>
                                <rich:menuItem value="BlueSky Modified">
                                    <a4j:actionparam name="skin" value="blueSky Modified" assignTo="#{skinBean.skin}"/>
                                </rich:menuItem>
                                <rich:menuItem value="Laguna">
                                    <a4j:actionparam name="skin" value="laguna" assignTo="#{skinBean.skin}"/>
                                </rich:menuItem>
                                <rich:menuItem value="Class-X">
                                    <a4j:actionparam name="skin" value="class-X" assignTo="#{skinBean.skin}"/>
                                </rich:menuItem>
                                <rich:menuItem value="Dark-X">
                                    <a4j:actionparam name="skin" value="dark-X" assignTo="#{skinBean.skin}"/>
                                </rich:menuItem>
                                <rich:menuItem value="Classic">
                                    <a4j:actionparam name="skin" value="classic" assignTo="#{skinBean.skin}"/>
                                </rich:menuItem>
                                <rich:menuItem value="JapanCherry">
                                    <a4j:actionparam name="skin" value="japanCherry" assignTo="#{skinBean.skin}"/>
                                </rich:menuItem>
                                <rich:menuItem value="Ruby">
                                    <a4j:actionparam name="skin" value="ruby" assignTo="#{skinBean.skin}"/>
                                </rich:menuItem>
                                <rich:menuItem value="Wine">
                                    <a4j:actionparam name="skin" value="wine" assignTo="#{skinBean.skin}"/>
                                </rich:menuItem>
                                <rich:menuItem value="DeepMarine">
                                    <a4j:actionparam name="skin" value="deepMarine" assignTo="#{skinBean.skin}"/>
                                </rich:menuItem>
                                <rich:menuItem value="EmereldTown">
                                    <a4j:actionparam name="skin" value="emeraldTown" assignTo="#{skinBean.skin}"/>
                                </rich:menuItem>
                                <rich:menuItem value="Sakura">
                                    <a4j:actionparam name="skin" value="sakura" assignTo="#{skinBean.skin}"/>
                                </rich:menuItem>
                                <rich:menuItem value="Default">
                                    <a4j:actionparam name="skin" value="default" assignTo="#{skinBean.skin}"/>
                                </rich:menuItem>
                            </rich:menuGroup>


                        </rich:dropDownMenu>
                        <h:panelGroup id="showHideCommandLink">
                            <h:panelGroup rendered="#{adminPageBean.showQuickLogin}">
                                <a4j:commandLink value="Hide Quick Login"
                                                 action="#{admin.hideQuickLogin}"
                                                 type="ajax"
                                                 reRender="quickLoginPanel, showHideCommandLink"
                                        />
                            </h:panelGroup>

                            <h:panelGroup rendered="#{not adminPageBean.showQuickLogin}">
                                <a4j:commandLink value="Show Quick Login"
                                                 type="ajax"
                                                 action="#{admin.showQuickLogin}"
                                                 reRender="quickLoginPanel, showHideCommandLink"
                                        />
                            </h:panelGroup>
                        </h:panelGroup>

                        <h:commandLink value="Logout" action="#{loginBean.logout}"/>
                    </rich:toolBarGroup>
                </rich:toolBar>

            </h:panelGroup>
            <h:panelGroup>
                <h:panelGroup layout="block" style="float:left;">
                    <h:graphicImage value="./style/images/masterAdminLogo.PNG" style="resize:both; width: 200px;"/>
                </h:panelGroup>
                <h:panelGroup id="quickLoginPanel" layout="block" style="float:right; height:auto; width:auto;">
                    <rich:panel bodyClass="rich-laguna-panel-no-header" rendered="#{adminPageBean.showQuickLogin}">
                        <h:panelGrid columns="2">
                            <h:panelGroup style="text-align:right;font:10;" layout="block">
                                <h:outputLabel value="#{resources.emailLabel}"/>
                            </h:panelGroup>
                            <h:inputText value="#{welcome.autentificate.mail}"/>

                            <h:panelGroup style="text-align:right;font:10;" layout="block">
                                <h:outputLabel value="#{resources.passwordLabel}"/>
                            </h:panelGroup>
                            <h:inputSecret value="#{welcome.autentificate.password}" redisplay="true"/>


                            <h:outputLabel value=""></h:outputLabel>
                            <h:panelGroup style="text-align:left; font:10;" layout="block">
                                <h:commandButton style="text-align:left" value="#{resources.loginLabel}"
                                                 action="#{welcome.login}"/>
                            </h:panelGroup>
                        </h:panelGrid>
                    </rich:panel>

                </h:panelGroup>
            </h:panelGroup>


        </h:panelGrid>


    </h:form>


</ui:component>


</html>
